import os

from pygame.locals import *
# Constants should start with an upper case.

# Display properties
WindowDefaultWidth = 640
WindowDefaultHeigth = 480
Delay = 30

# Player coordinates in the window
X_player = 240
Y_player = 160

# Backgrounds
MenuBackground = 'images%smainmenubackground.png'%(os.sep)
Background1 = 'images%sbackground1.png'%(os.sep)

# Borders
Border1 = 'images%smontagne.png'%(os.sep)

# Maps files
Map1 = 'maps%smap1.map'%(os.sep)
Map2 = 'maps%smap2.map'%(os.sep)

# Surroundings
SpriteHeigth = 80 # pixels
SpriteWidth = 80 # pixels
SightUp = 2 # cells
SightDown = 3 # cells
SightLeft = 3 # cells
SightRight = 4 # cells

# Sprites
CharacterSprite = 'images%sCynthia.png'%(os.sep)
Stairs = 'images%sstairs.png'%(os.sep)
Tree = 'images%stree.png'%(os.sep)

# Main menu
NewGameSprite = 'texts%snewgame.png'%(os.sep)
LoadGameSprite = 'texts%sloadgame.png'%(os.sep)
QuitGameSprite = 'texts%squitgame.png'%(os.sep)
MainMenuXPosition = 160
MainMenuItemsYPositions = [160,240,320]
MainMenuCursorXPosition = 140
CursorSprite = 'images%scursor.png'%(os.sep)

# NewGame menu
YourNameSprite = 'texts%syourname.png'%(os.sep)
NewGameMenuItemXPosition = MainMenuXPosition
NewGameMenuItemYPosition = WindowDefaultHeigth*5/12
AlphaNumericChars = [ K_a , K_b , K_c , K_d , K_e , K_f , K_g , K_h , K_i , K_j , K_k , K_l , K_m ,
			 K_n , K_o , K_p , K_q , K_r , K_s , K_t , K_u , K_v , K_w , K_x , K_y , K_z ]
NameMaxLength = 16

# Start level
BeginningLevel = Map1
CharacterStartX = 11
CharacterStartY = 8

# Directories
CharsDirectory = 'chars'
MapsDirectory = 'maps'

# Files
SavefileBasename = 'char_'
SavefileExtension = '.gkp'
FileNameSection = '/Name'
FileLevelSection = '/Level'
FilePositionSection = '/Position'
FileBorderSection = '/Border'
FileSizeSection = '/Size'
FileBackgroundSection = '/Background'
FilePropertiesSection = '/Properties'
FileObstaclesSection = '/Obstacles'
FilePassagesSection = '/Passages'

